package fr.umlv.escapeir.weapon;

import org.jbox2d.common.Vec2;

import fr.umlv.escapeir.GameWorld;
import fr.umlv.escapeir.game.WorldActor;
import fr.umlv.escapeir.painter.WorldGraphics2D;

class FakeWeapon implements Weapon {

	private final GameWorld world;
	
	FakeWeapon(WorldActor actor) {
		this.world = actor.getWorld();
	}
	@Override
	public Type getType() {
		return Type.WEAPON;
	}
	@Override
	public Vec2 getPosition() {
		return new Vec2();
	}
	@Override
	public float getAngle() {
		return 0;
	}
	@Override
	public GameWorld getWorld() {
		return world;
	}
	@Override
	public void render(WorldGraphics2D painter) {}
	@Override
	public void apply() {}
	@Override
	public void touch(WorldActor actor) {}
	@Override
	public boolean fire(float theta) {return true;}

}
